// After
import { createRoot } from 'react-dom/client';
import App from './App'

import {Provider} from "react-redux";
import store from './redux/store'

const container = document.getElementById('root');
const root = createRoot(container);
root.render(
    // Provider包裹后的组件都会自动传入store
    <Provider store={store}>
        <App/>
    </Provider>
);

